package top.liuziqian.shop.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.liuziqian.common.core.text.Convert;
import top.liuziqian.shop.domain.GoodsSupplierCategory;
import top.liuziqian.shop.mapper.GoodsSupplierCategoryMapper;
import top.liuziqian.shop.service.IGoodsSupplierCategoryService;

import java.util.List;

@Service
public class GoodsSupplierCategoryServiceImpl implements IGoodsSupplierCategoryService {

    @Autowired
    private GoodsSupplierCategoryMapper supplierCategoryMapper;

    @Override
    public GoodsSupplierCategory selectSupplierCategoryById(Long supplierCategoryId) {
        return supplierCategoryMapper.selectSupplierCategoryById(supplierCategoryId);
    }

    @Override
    public List<GoodsSupplierCategory> selectSupplierCategoryList(GoodsSupplierCategory supplierCategory) {
        return supplierCategoryMapper.selectSupplierCategoryList(supplierCategory);
    }

    @Override
    public List<GoodsSupplierCategory> selectSupplierCategoryAll() {
        return supplierCategoryMapper.selectSupplierCategoryAll();
    }

    @Override
    public int insertSupplierCategory(GoodsSupplierCategory supplierCategory) {
        return supplierCategoryMapper.insertSupplierCategory(supplierCategory);
    }

    @Override
    public int updateSupplierCategory(GoodsSupplierCategory supplierCategory) {
        return supplierCategoryMapper.updateSupplierCategory(supplierCategory);
    }

    @Override
    public int deleteSupplierCategoryByIds(String ids) {
        return supplierCategoryMapper.deleteSupplierCategoryByIds(Convert.toStrArray(ids));
    }
}
